
using MediaColor=System.Windows.Media.Color;
using DrawingColor=System.Drawing.Color;
namespace 地图哇哇哇
{
    public static class Exts
    {
        public static MediaColor 转换(this DrawingColor color,byte alpha=0)
        {
            return MediaColor.FromArgb(alpha==0?color.A:alpha, color.R, color.G, color.B);
        }
        public static bool 合格吗(this System.Windows.Size s,double 限度=0)
        {
            if (s.Width < 限度 || s.Height < 限度)
                return false;
            return true;
        }

         
    }
}